Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add StatefulSet resource #93

Merged
merged 1 commit into from
Nov 13, 2018

Conversation

tremes
Copy link
Contributor

@tremes tremes commented Nov 1, 2018

No description provided.

@ghost ghost added the in progress label Nov 1, 2018
t.end();
}).catch(e => {
console.log(e);
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can remove this catch once the tests will be passing


nock(clientConfig.cluster)
.matchHeader('authorization', `Bearer ${clientConfig.user.token}`) // taken from the config
.get(`/oapi/v1/namespaces/${clientConfig.context.namespace}/statefulsets/${statefulSetName}`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be /apis/apps/v1beta1 instead of /oapi/v1/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes...stupid mistake:). Thanks


nock(clientConfig.cluster)
.matchHeader('authorization', `Bearer ${clientConfig.user.token}`) // taken from the config
.post(`/oapi/v1/namespaces/${clientConfig.context.namespace}/statefulsets`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be /apis/apps/v1beta1 instead of /oapi/v1/

test('find - statefulsets - find - no statefulset name', (t) => {
openshiftRestClient(settings).then((client) => {
client.statefulsets.find().catch((err) => {
t.equal(err.message, 'StatefulSet Name is required', 'error message should return');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests fail because it is looking for Stateful Set

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again...stupid mistake:) Thanks a lot for review. I am about to push an update.

@tremes tremes force-pushed the statefulset_resources branch from bc6e85b to 4064ea5 Compare November 13, 2018 08:51
@coveralls
Copy link

coveralls commented Nov 13, 2018

Pull Request Test Coverage Report for Build 279

  • 42 of 42 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.09%) to 98.246%

Totals Coverage Status
Change from base Build 278: 0.09%
Covered Lines: 801
Relevant Lines: 810

💛 - Coveralls

@lholmquist
Copy link
Member

@tremes can you give this a Rebase, i've merged in #96 so there is now a conflict

@tremes
Copy link
Contributor Author

tremes commented Nov 13, 2018

@lholmquist Yeah sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants